<script>
<?php if (jfPortableDevice::isNativeApp() && !$sf_request->isXmlHttpRequest()): ?>
  jfPD.appType = 'native';
<?php endif; ?>
jfPD.init(<?php echo $sf_data->getRaw('config') ?>);
</script>
